package cheme.ProcessEditor.Tools;

import org.eclipse.gef.internal.GEFMessages;
import org.eclipse.gef.palette.ToolEntry;
import org.eclipse.jface.resource.ImageDescriptor;

import cheme.ProcessEditor.ProcessEditor;

public class ChemeSelectionToolEntry extends ToolEntry
{
	static final ImageDescriptor descriptor = ImageDescriptor.createFromFile(ProcessEditor.class, "Icons/Select.gif");
	
	/**
	 * Creates a new SelectionToolEntry.
	 */
	public ChemeSelectionToolEntry()
	{
		this(null);
	}

	/**
	 * Constructor for SelectionToolEntry.
	 * 
	 * @param label
	 *            the label
	 */
	public ChemeSelectionToolEntry(String label)
	{
		this(label, null);
	}

	/**
	 * Constructor for SelectionToolEntry.
	 * 
	 * @param label
	 *            the label
	 * @param shortDesc
	 *            the description
	 */
	public ChemeSelectionToolEntry(String label, String shortDesc)
	{		
		super(label, shortDesc, descriptor, descriptor, ChemeSelectionTool.class);
		
		if(label == null || label.length() == 0)
		{
			setLabel(GEFMessages.SelectionTool_Label);
		}
		
		setUserModificationPermission(PERMISSION_NO_MODIFICATION);
	}
}
